const mongoose=require("./db.js");

let UserSchema=mongoose.Schema({
    username:String,
    dearname:String,
    age:{
        type:Number,
        max:150,
        min:0
    },
    password:String
});

let UserModel=mongoose.model("User",UserSchema,"user");//会创建一个user的集合（表）

module.exports=UserModel;